//
//  EditHomeTabCell.m
//  PWDAssistant
//
//  Created by Ajen on 2019/1/3.
//  Copyright © 2019 Ajen. All rights reserved.
//

#import "EditHomeTabCell.h"

@implementation EditHomeTabCell{
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        _nameLabel = [UILabel new];
        _nameLabel.aj_Text(@"栏目名字").aj_font([UIFont systemFontOfSize:18 weight:UIFontWeightRegular]).aj_textColorHexStr(@"#444444").aj_addToView(self.contentView);
        [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(15);
            make.right.equalTo(self.contentView).offset(-10);
            make.bottom.equalTo(self.contentView.mas_centerY);
        }];
        
        _countLabel = [UILabel new];
        _countLabel.aj_Text(@"└ 条数:10086").aj_font([UIFont systemFontOfSize:15 weight:UIFontWeightThin]).aj_textColorHexStr(@"#666666").aj_addToView(self.contentView);
        [_countLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(15);
            make.right.equalTo(self.contentView).offset(-10);
            make.top.equalTo(self.contentView.mas_centerY).offset(6);
        }];
    
    }
    return self;
}

@end
